﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace HYBYSoft.Company.Models
{
    [MetadataType(typeof(Article_Metadata))]
    public partial class Article
    {
        public class Article_Metadata
        {
            public int ArticleID { get; set; }

            public int CategoryID { get; set; }

            [Display(Name = "文章标题")]
            [Required]
            [StringLength(16)]
            public string Title { get; set; }

            [Display(Name = "创建者")]
            [StringLength(8)]
            public string Editor { get; set; }

            [Display(Name = "文章内容")]
            public string Contents { get; set; }

            [Display(Name = "文章图标")]
            public string Icon { get; set; }

            [Display(Name = "简要描述")]
            [StringLength(128)]
            public string Description { get; set; }

            [Display(Name = "创建时间")]
            public DateTime CreateTime { get; set; }

            [Display(Name = "最后修改者")]
            [StringLength(8)]
            public string LastEditor { get; set; }

            [Display(Name = "最后修改时间")]
            public DateTime LastEditTime { get; set; }

            public string ControllorName { get; set; }

            public string ActionName { get; set; }

            [Display(Name = "发布状态")]
            public int IsRelease { get; set; }
        }
    }
}
